package com.ruoyi.scrap.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_scrap_apply")
public class ScrapApply extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.INPUT)
    private String id;
    /** 科室id */
    @Excel(name = "科室id")
    private Long deptId;
    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;
    /** 分管领导 */
    @Excel(name = "分管领导")
    private Long leader;
    /** 科室负责人 */
    @Excel(name = "科室负责人")
    private Long deptLeader;
    /** 科室分管人员 */
    @Excel(name = "科室分管人员")
    private Long deptStaff;
    /** 车间主任 */
    @Excel(name = "车间主任")
    private Long workLeader;
    /** 经办人 */
    @Excel(name = "经办人")
    private Long workStaff;
    /** 电话 */
    @Excel(name = "电话")
    private String workTel;
    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;
    private String reason;
    /** 下级审核人 */
    @Excel(name = "下级审核人")
    private Long nextAudit;
    /** 当前等级 */
    private Integer level;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private String delFlag;

    private String ideaFile;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("applyTime", getApplyTime())
                .append("leader", getLeader())
                .append("deptLeader", getDeptLeader())
                .append("deptStaff", getDeptStaff())
                .append("workLeader", getWorkLeader())
                .append("workStaff", getWorkStaff())
                .append("workTel", getWorkTel())
                .append("auditStatus", getAuditStatus())
                .append("nextAudit", getNextAudit())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
